<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="/js/success.js"></script>
</head>
<body>
<h3>登陆成功之后进入首页</h3>
    请输入：<input id="username"/>
    <shiro:hasPermission name="test_add">
        <button type="button" onclick="auth();">权限测试</button>
    </shiro:hasPermission>
</body>
</html>